﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ledict.ConditionExtract.Model
{
    /// <summary>
    /// 来源配置表
    /// </summary>
    [Table(Name = "SYS_Express_Source")]
    public class SysExpressSource
    {

        #region Model
        private string _es_id;
        private string _cc_id;
        private string _source_id;
        private string _source_paragraphid;
        private string _source_name;
        private string _source_paragraphname;
        private string _cc_regexinfocode;
        private string _source_texttype;
        /// <summary>
        /// 主键ID
        /// </summary>
        public string ES_ID
        {
            set { _es_id = value; }
            get { return _es_id; }
        }
        /// <summary>
        /// 案由ID
        /// </summary>
        public string CC_ID
        {
            set { _cc_id = value; }
            get { return _cc_id; }
        }
        /// <summary>
        /// 来源ID
        /// </summary>
        public string Source_ID
        {
            set { _source_id = value; }
            get { return _source_id; }
        }
        /// <summary>
        /// 来源逻辑段ID
        /// </summary>
        public string Source_ParagraphID
        {
            set { _source_paragraphid = value; }
            get { return _source_paragraphid; }
        }
        /// <summary>
        /// 来源名称
        /// </summary>
        public string Source_Name
        {
            set { _source_name = value; }
            get { return _source_name; }
        }
        /// <summary>
        /// 来源逻辑段名称
        /// </summary>
        public string Source_ParagraphName
        {
            set { _source_paragraphname = value; }
            get { return _source_paragraphname; }
        }
        /// <summary>
        /// 信息单元code
        /// </summary>
        public string CC_RegexInfoCode
        {
            set { _cc_regexinfocode = value; }
            get { return _cc_regexinfocode; }
        }
        /// <summary>
        /// 来源类型
        /// </summary>
        public string Source_TextType 
        {
            set { _source_texttype = value; }
            get { return _source_texttype; }
        }
        #endregion Model

        ///// <summary>
        ///// 是否复制正则规则
        ///// </summary>
        //public bool IsCopyRegex { get; set; }

        /// <summary>
        /// 复制的来源ID
        /// </summary>
        public string CopySourceId { get; set; }
        /// <summary>
        /// 复制的段落ID
        /// </summary>
        public string CopySourceParagraphId { get; set; }

        /// <summary>
        /// 复制的用途ID
        /// </summary>
        public string CopyEsPurposeId { get; set; }
        /// <summary>
        /// 复制的版本ID
        /// </summary>
        public string CopySourceTextType { get; set; }

        /// <summary>
        /// 用途ID
        /// </summary>
        public string EsPurposeId { get; set; }

        /// <summary>
        /// 用途名称
        /// </summary>
        public string EsPurposeName { get; set; }

        /// <summary>
        /// 信息单元(新建还是共用)
        /// </summary>
        public string  EIName { get; set; }

        /// <summary>
        /// 0表示正则提取(默认值)，1表示机器学习提取
        /// </summary>
        public int IsML { get; set; } = 0;
    }
}
